<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>指标聚焦查看</title>

    <link rel="stylesheet" href="${ctx}/static/styles/news/newsdetail.css" type="text/css">
</head>

<body>
<div class="news-main">
    <div class="container row">
        <div class="col-lg-8 news-detail">
            <c:forEach items="${samples}" var="sample">
                <div class="panel panel-primary">
                    <div class="panel-heading"><a id="${sample.id}" style="color:white">${sample.quota}</a></div>
                    <div class="panel-body">
                        <c:forEach items="${sample.contexts}" varStatus="status" var="ct">
                            <p class="list-group-item-text" style="padding-bottom:10px; ">${ status.index + 1}. ${ct.quotaContext}<span style="font-size: 10px"><a
                                    href="${ctx}/std/detail/${ct.std.id}">跳转到标准</a></span></p>
                        </c:forEach>
                    </div>
                </div>
            </c:forEach>
        </div>
        <div class="news-aside">
            <div class="news-aside-main">
                <div class="news-aside-header">
                    指标导航
                </div>
                <ul class="news-aside-list">
                    <c:forEach items="${samples}" var="sample">
                        <li class="news-aside-item"><a class="news-aside-title" href="#${sample.id}">
                            <span class="news-time">跳转到...</span>
                                ${sample.quota}</a>
                        </li>
                    </c:forEach>
                </ul>
            </div>

        </div>
    </div>
</div>
</body>
</html>
